﻿using DAL;
using Model;

namespace BLL
{
    public class MenDian_BLL
    {
        public MenDian_BLL(MenDian_DAL dal)
        {
            Dal = dal;
        }

        public MenDian_DAL Dal { get; }

        /// <summary>
        /// 门店添加
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int MenDianAdd(MenDian_Model m)
        {
            return Dal.MenDianAdd(m);
        }


        /// <summary>
        /// 门店列表
        /// </summary>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <param name="MName"></param>
        /// <param name="MPhone"></param>
        /// <param name="Count"></param>
        /// <param name="Count2"></param>
        /// <returns></returns>
        public List<MenDian_Model> MenDianShow(int index, int size, string MName, string MPhone, out int Count, out int Count2)
        {
           return Dal.MenDianShow(index, size, MName, MPhone, out Count, out Count2);
        }
        /// <summary>
        /// 门店下拉
        /// </summary>
        /// <returns></returns>
        public List<MenDian_Model> MenDianShow2()
        {
            return Dal.MenDianShow2();
        }
        /// <summary>
        /// 门店删除
        /// </summary>
        /// <param name="Mid"></param>
        /// <returns></returns>
        public int MenDianShan(int Mid)
        {
            return Dal.MenDianShan(Mid);
        }
    }
}
